package com.woniuxy.threeprojcet.end_water_project_admin.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.threeprojcet.end_water_project_admin.dao.PaymentFormMapper;
import com.woniuxy.threeprojcet.end_water_project_admin.dao.UserMapper;
import com.woniuxy.threeprojcet.end_water_project_admin.service.impl.PaymentFormServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 缴费表 前端控制器
 * </p>
 *
 * @author Lucas
 * @since 2021-08-26
 */
@RestController
@RequestMapping("/admin")
@CrossOrigin("*")
@Slf4j
public class PaymentFormController {

    @Resource

    private PaymentFormServiceImpl paymentFormService;

    //获得缴费表
    @GetMapping("getPayment")
    public List getUser( ) {


        List payment = paymentFormService.getPayment();


        log.info("payment{}", payment);
        return payment;
    }
}

